let ua = navigator.userAgent
export default {
    isApp:ua.indexOf('#AwesomeNews')!== -1,
    ios:!!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
    isAndroid:ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1,
    download:{
        ios:window.$config.download.ios,
        android:window.$config.download.android
    },
    link:{
        back:'js://back',
        collect:'js://collect',
        report:'js://report',
        preview:'js://preview',
        open_detail:'fanya://news/',
        open_circle:'fanya://circle/',
        open_collect:'fanya://collect/',
    }
}